#!/usr/bin/env python
# encoding: utf-8
"""
@Author: Beam
@Mail:506556658@qq.com
@file: RedisSubscribe.py
@time: 2017/6/2 14:24
"""

import sys,os
BASICS_PATH = os.path.dirname(os.path.dirname(os.path.abspath(__file__)))
sys.path.append(BASICS_PATH)

from RedisHelper import RedisHelpers

obj = RedisHelpers()
redis_sub = obj.subscribe()

while True:
    msg = redis_sub.parse_response()
    print(msg)